<?php
require_once("./vo/com/artxis/cms/vo/SiteConfigVO.php");
//conection info
require_once("config.php");
class SiteConfigService {
     	function SiteConfigService(){
			//connect to the database.
			$mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
			mysql_select_db(DATABASE_NAME);
    	}
	  	public function GetSiteConfig()
	    {	
	    	     	
	       	$sql = mysql_query("SELECT*FROM configuration");
                $siteConfigVO = new SiteConfigVO(); 
			    $tableDatax = mysql_fetch_array($sql);
			    $siteConfigVO->Nama_domain    = $tableDatax["Nama_domain"];
				$siteConfigVO->copyright      = $tableDatax["copyright"];
				$siteConfigVO->Site_logo      = $tableDatax["Site_logo"];
				$siteConfigVO->title          = $tableDatax["title"];
				$siteConfigVO->keyword        = $tableDatax["keyword"];
				$siteConfigVO->admin_name     = $tableDatax["admin_name"];
				$siteConfigVO->admin_passwod  = $tableDatax["admin_passwod"];
				$siteConfigVO->admin_email    = $tableDatax["admin_email"];
				$siteConfigVO->themes         = $tableDatax["themes"];
				$siteConfigVO->SoundBackgroud = $tableDatax["SoundBackgroud"];
				$siteConfigVO->donationUrl    = $tableDatax["donationUrl"];
				$siteConfigVO->youtubeApi     = $tableDatax["youtubeApi"];
				
			  
		 return $siteConfigVO;   	
	    }

}

?>